<?php
class BaseAction extends Action {
   //_initialize不能私有
    public function _initialize() {
    	header("Content-Type:text/html; charset=utf-8");
    	if(!session('admin')) {
			redirect(PHP_FILE.C('USER_AUTH_GATEWAY'));
		}
    }
}